Math.signNonZero Method

Returns an integer that indicates the sign of a number.
 
 
Static This method is static.

Parameters

value

Type: Number
A signed number.

Return Value


Type: Number (Integer)
-1 if value is less than 0, or 1 if value is greater than or equal to 0.